﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Mysoft.ServerMonitoring.OMKit.Views;
using Csla;
using ProjTemp.Desktop.Common.ResourceManagement;
using ProjTemp.Desktop.Common;
using ProjTemp.Common.Logging;
using ProjTemp.Common;
using System.Reflection;
using System.Windows.Threading;
using ProjTemp.Desktop.Common.App;

namespace Mysoft.ServerMonitoring.OMKit
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : AppBase
    {
        protected override void StartUp()
        {
            //Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
            //bool? res = new Login().ShowDialog();
            //Application.Current.MainWindow = null;

            //if (!res.HasValue || !res.Value || !ApplicationContext.User.Identity.IsAuthenticated)
            //{
            //    Application.Current.Shutdown(1);
            //}

            Application.Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
            new SysBootstrapper().Run();
        }
    }
}
